// pages/pay/pay-success/pay-success.js
Page({
  data: {
    url: "/pages/league/list/list" // 点击确认按钮跳转路径
  },
  onLoad: function (options) {
    if (options.url){
      this.setData({
        url: options.url
      })
    }
  },
  toHomePage(){
    const that = this
    wx.switchTab({
      url: that.data.url
    })
  }
})